﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Layer Region IDs STO (server transfer object)
	/// </summary>
    [DataContract]
    public class LayerRegionIDsSTO
    {
        public int _layerID;
        public List<RegionDTO> _regionIDList;
        public string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="LayerRegionIDsSTO"/> class.
		/// </summary>
        public LayerRegionIDsSTO()
        {
            _layerID = -1;
            _regionIDList = new List<RegionDTO>();
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the layer ID.
		/// Index in the layer table <see cref="LayerDTO"/>
		/// </summary>
		/// <value>The layer ID.</value>
        [DataMember]
        public int layerID
        {
            get { return _layerID; }
            set { _layerID = value; }
        }

		/// <summary>
		/// Gets or sets the region ID list of <see cref="RegionDTO"/>.
		/// </summary>
		/// <value>The region ID list.</value>
        [DataMember]
        public List<RegionDTO> regionIDList
        {
            get { return _regionIDList; }
            set { _regionIDList = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

    }
}
